package com.das.mechanic_base.bean.camera;

public class ImageVideoBean {

    public String path;

    public long addTime;

    public long time;

    public boolean isSelect;

    public void setTime(long time) {
        this.time = time;
    }

    public ImageVideoBean(String path, long addTime, long time) {
        this.path = path;
        this.addTime = addTime;
        this.time = time;
    }

    @Override
    public boolean equals(Object o) {
        try {
            ImageVideoBean other = (ImageVideoBean) o;
            return this.path.equalsIgnoreCase(other.path);
        }catch (ClassCastException e){
            e.printStackTrace();
        }
        return super.equals(o);
    }

    @Override
    public String toString() {
        return "ImageVideoBean{" +
                "path='" + path + '\'' +
                ", addTime=" + addTime +
                ", time=" + time +
                ", isSelect=" + isSelect +
                '}';
    }
}
